// 工作区相关类型定义

export interface Workspace {
  id: string
  name: string
  description?: string
  created_at: string
  updated_at: string
  is_active: boolean
  settings: any
}

export interface AnalysisSession {
  id: string
  workspace_id: string
  name: string
  description?: string
  status: 'created' | 'analyzing' | 'completed' | 'failed'
  created_at: string
  updated_at: string
  original_filename?: string
  file_size?: number
  file_hash?: string
  storage_path?: string
  analysis_results?: any
  ai_analysis?: any
  tags?: any[]
  bookmarks?: any[]
  total_logs?: number
  error_count?: number
  warning_count?: number
  info_count?: number
  notes?: string
}

export interface ConversationMessage {
  id: string
  session_id: string
  message_type: 'user' | 'assistant'
  content: string
  context?: any
  created_at: string
}

export interface AIModel {
  key: string
  name: string
  provider: string
  is_current: boolean
}

export interface ErrorCategory {
  name: string
  count: number
  description: string
}
